﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Net.Mail;
using System.Net.Configuration;
using lakethaiClassLibrary;

/// <summary>
/// Summary description for app_config
/// </summary>
public static class app_helper
{
    public static string ContactMailLocation
    {
        get
        {
            string tempValue = @"~/mail_temp/contact_template.txt";
            //try
            //{
            //    if (ConfigurationManager.AppSettings.Get("ConfirmMailLocation") != null)
            //        tempValue = ConfigurationManager.AppSettings.Get("ConfirmMailLocation");
            //}
            //catch { }
            return HttpContext.Current.Server.MapPath(tempValue);
        }
    }
}
